
<script>
function abc(){
 var name=document.getElementById('search_key');
 name.className="ipt12";
}
function cc(x){
 var name=document.getElementById("con_five_"+x);
 var list=document.getElementById("five"+x);
 name.style.display="none";
 list.className="";
}
function setTab(name,cursel,n){
 for(i=1;i<=n;i++){
  var menu=document.getElementById(name+i);
  var con=document.getElementById("con_"+name+"_"+i);
  menu.className=i==cursel?"hover":"";
  con.style.display=i==cursel?"block":"none";
 }
}

</script>

  <!--头部结束-->
  <div class="main">
     <div class="left">
        <?php
         @include_component("system","menuNavigator",array("catalogId"=>$catalogId,"subCatalogId"=>4,"type"=>4,"cssStr"=>"address_tit address_tit301"));
         echo "<div class=\"abcd\"> ";
		 //echo "<a href='?link=a'>A</a><a href='?link=b'>B</a><a href='?link=c'>C</a><a href='?link=d'>D</a><a href='?link=e'>E</a><a href='?link=f'>F</a><a href='?link=g'>G</a><a href='?link=h'>H</a><a href='?link=i'>I<a href='?link=j'>J</a><a href='?link=k'>K</a><a href='?link=l'>L</a><a href='?link=m'>M</a><a href='?link=n'>N</a><a href='?link=o'>O</a><a href='?link=p'>P</a><a href='?link=q'>Q</a><a href='?link=r'>R</a><a href='?link=s'>S</a><a href='?link=t'>T</a><a href='?link=u'>U</a><a href='?link=v'>V</a><a href='?link=w'>W</a><a href='?link=x'>X</a><a href='?link=y'>Y</a><a href='?link=z'>Z</a>";
         echo link_to("A","album/list?catalogId=".$catalogId."&link=A",($link==A?"style='text-decoration:none;'":""))
                 .link_to("B","album/list?catalogId=".$catalogId."&link=B",($link==B?"style='text-decoration:none;'":""))
                 .link_to("C","album/list?catalogId=".$catalogId."&link=C",($link==C?"style='text-decoration:none;'":""))
                 .link_to("D","album/list?catalogId=".$catalogId."&link=D",($link==D?"style='text-decoration:none;'":""))
                 .link_to("E","album/list?catalogId=".$catalogId."&link=E",($link==E?"style='text-decoration:none;'":""))
                 .link_to("F","album/list?catalogId=".$catalogId."&link=F",($link==F?"style='text-decoration:none;'":""))
                 .link_to("G","album/list?catalogId=".$catalogId."&link=G",($link==G?"style='text-decoration:none;'":""))
                 .link_to("H","album/list?catalogId=".$catalogId."&link=H",($link==H?"style='text-decoration:none;'":""))
                 .link_to("I","album/list?catalogId=".$catalogId."&link=I",($link==I?"style='text-decoration:none;'":""))
                 .link_to("J","album/list?catalogId=".$catalogId."&link=J",($link==J?"style='text-decoration:none;'":""))
                 .link_to("K","album/list?catalogId=".$catalogId."&link=K",($link==K?"style='text-decoration:none;'":""))
                 .link_to("L","album/list?catalogId=".$catalogId."&link=L",($link==L?"style='text-decoration:none;'":""))
                 .link_to("M","album/list?catalogId=".$catalogId."&link=M",($link==M?"style='text-decoration:none;'":""))
                 .link_to("N","album/list?catalogId=".$catalogId."&link=N",($link==N?"style='text-decoration:none;'":""))
                 .link_to("O","album/list?catalogId=".$catalogId."&link=O",($link==O?"style='text-decoration:none;'":""))
                 .link_to("P","album/list?catalogId=".$catalogId."&link=P",($link==P?"style='text-decoration:none;'":""))
                 .link_to("Q","album/list?catalogId=".$catalogId."&link=Q",($link==Q?"style='text-decoration:none;'":""))
                 .link_to("R","album/list?catalogId=".$catalogId."&link=R",($link==R?"style='text-decoration:none;'":""))
                 .link_to("S","album/list?catalogId=".$catalogId."&link=S",($link==S?"style='text-decoration:none;'":""))
                 .link_to("T","album/list?catalogId=".$catalogId."&link=T",($link==T?"style='text-decoration:none;'":""))
                 .link_to("U","album/list?catalogId=".$catalogId."&link=U",($link==U?"style='text-decoration:none;'":""))
                 .link_to("V","album/list?catalogId=".$catalogId."&link=V",($link==V?"style='text-decoration:none;'":""))
                 .link_to("W","album/list?catalogId=".$catalogId."&link=W",($link==W?"style='text-decoration:none;'":""))
                 .link_to("X","album/list?catalogId=".$catalogId."&link=X",($link==X?"style='text-decoration:none;'":""))
                 .link_to("Y","album/list?catalogId=".$catalogId."&link=Y",($link==Y?"style='text-decoration:none;'":""))
                 .link_to("Z","album/list?catalogId=".$catalogId."&link=Z",($link==Z?"style='text-decoration:none;'":""))
                 .link_to("其他","album/list?catalogId=".$catalogId."&link=ot",($link=='ot'?"style='text-decoration:none;'":""));
		 ?>
     </div>

   <!--#视频列表开始-->
         <div class="star_list">
            <div class="mt_box">
            <?php
            use_helper("users");
            $photoGroups = @$pages->getResults();
            foreach($photoGroups as $row=>$photoGroup) //fileExist($photoGroup->getSnapshot())(null==$photoGroup->getSnapshot()?"/images/noimage.gif":$photoGroup->getSnapshot())
            {
                echo "<div class='mt_con'>".link_to("<img src='".$photoGroup->getSnapshot()."' border=0/>","album/detail?photoGroupId="
                        .$photoGroup->getPhoto_group_id()," target='_blank'")."<p> ".link_to($photoGroup->getTitle()
                    ,"album/detail?photoGroupId=".$photoGroup->getPhoto_group_id()," target='_blank'")."
                                              </p></div>";
            }
           ?>
			</div>
         <?php
           $numPages= $pages->getLastPage();
           $CurrentPageID=$pages->getPage();
             if(@$pages->haveToPaginate())
			{
				$str=$CurrentPageID-6;
				$end=$CurrentPageID+5;
				if($str<0)
					$str=0;
				if($end>$numPages)
					$end=$numPages;
				echo "<div class='page_list'>";
				if($CurrentPageID>1)
					echo link_to("上一页","album/list?catalogId=".$catalogId."&currentPage=".($CurrentPageID-1),"");
				 for($i=$str;$i<$end;$i++)
				 {
					if($i==($CurrentPageID-1)){
					echo "<a class='now02' href='#'>".($i+1)."</a>";}
					else{
					    echo link_to(($i+1),"album/list?catalogId=".$catalogId."&currentPage=".($i+1),"");
                    }
				 }
				 if($CurrentPageID<$numPages)
				 echo link_to("下一页","album/list?catalogId=".$catalogId."&currentPage=".($CurrentPageID+1),"");
				 echo "</div>";
			}
         ?>
         </div>

     </div>
     <!--左侧结束 右侧开始-->
      <?php include_component('album', 'recommend') ?> 
  </div>


